import Mock from 'mockjs'

import api from './api'

const mockOutput = () => {
  api.forEach(el => {
    Mock.mock(new RegExp(el.url), el.method || 'get', el.response())
  })
}
export default mockOutput
